import cn.edu.hbsi.dao.PersonDao;
import cn.edu.hbsi.utils.GetSqlSessionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.After;
import org.junit.Test;

public class testPerson
{
    private SqlSession sqlSession = GetSqlSessionUtil.getSqlSession();
    private PersonDao personDao = sqlSession.getMapper(PersonDao.class);

    @Test
    public void testSelectPersonAndIdCard(){
        System.out.println(personDao.selectPersonAndIdCard(1));
    }

    @After
    public void destory(){
        sqlSession.commit();
        sqlSession.close();
    }
}
